package com.zzc.service;

import com.zzc.common.JsonResult;
import com.zzc.common.TableResult;
import com.zzc.pojo.Menu;
import com.zzc.pojo.Role;

import java.util.List;

/**
 * @author zhouzhou
 */
public interface RoleService {


    /**
     * 查询全部菜单信息
     * @param page
     * @param limit
     * @return
     */
    TableResult getRoleList(String name,Integer page, Integer limit);


    JsonResult insertRole(Role role);

    JsonResult updateByPrimaryKeySelective(Role role);

    List<Integer> getRoleMenu(Integer roleId);

    List<Menu> getMenus();

    JsonResult updateRoleMenu(Integer roleId, Integer[] menuIds);
}